'use strict';
var React = require('react');
class HkfsProductDescription extends React.Component {
    constructor(props) {
        super(props);
        this.renderContent = this.renderContent.bind(this);
    }

    //渲染tooltip的文字部分
    renderContent() {
        return this.props.children.map((child, i)=> {
            return i == 0 ? <div className="Title" key={"Content_Item"+i}>{child}
                <div className="MiddleLine"></div>
            </div> : <div className="Main" key={"Content_Item"+i}>{child}</div>
        });
    }


    render() {
        return (
            <div className="HkfsProductDescription">
                    {this.renderContent()}
            </div>
        )
    }
}

module.exports=HkfsProductDescription;